package com.vizhuo.client.base;

import java.util.HashMap;
import java.util.Map;

public abstract class AbstractReturnCodeConstant {

    public static Map<String, String> messageMap = new HashMap<String, String>();

    /**
     * 执行成功
     */
    public static final String SYS_SUCCESS = "0";

    public static final String SYS_ERROR_UNKNOWN = "1";

    /**
     * 网络异常
     */
    public static final String SYS_NET_EXCEPTION = "8888";

    public static final String SYS_SERVER_EXCEPTION = "7777";

    /**
     * 参数客户端类型为空
     */
    public static final String SYS_PARAM_NOT_APP_TYPE = "6661";

    /**
     * 参数用户名（手机号）为空
     */
    public static final String SYS_PARAM_NOT_USER_NAME = "6662";

    /**
     * 参数信息不全
     */
    public static final String SYS_PARAM_NOT_COMPLETE = "6666";

    /**
     * 无权限访问、登录已被注销
     */
    public static final String SYS_SESSION_FAIL = "5555";

    static {
        messageMap.put(SYS_SUCCESS, "执行成功");

        messageMap.put(SYS_ERROR_UNKNOWN, "SYS_ERROR_UNKNOWN");

        messageMap.put(SYS_NET_EXCEPTION, "网络异常");

        messageMap.put(SYS_PARAM_NOT_APP_TYPE, "参数客户端类型为空");

        messageMap.put(SYS_PARAM_NOT_USER_NAME, "参数用户名（手机号）为空");

        messageMap.put(SYS_PARAM_NOT_COMPLETE, "参数信息不全");

        messageMap.put(SYS_SESSION_FAIL, "请重新登录");

    }
}
